﻿package app.view.events 
{
	import app.model.vo.SectionVO;
	import flash.events.Event;
	
	/**
	 * события пользовательского интерфейса
	 * @author firsoff maxim, snzflash.com, tel: +79222345364, skype: maxim.firsoff
	 */
	public class UIEvent extends Event 
	{
		
		public static const LANG_CHANGE:String = 'LANG_CHANGE';
		public static const SECTION_CHANGE:String = 'SECTION_CHANGE';
		public static const POPUP_OPEN:String = 'POPUP_OPEN';
		public static const POPUP_CLOSE:String = 'POPUP_CLOSE';
		public static const CLICK_INTERVIEW_WINNER:String = 'CLICK_INTERVIEW_WINNER';
		public static const CLICK_ITEM_EVENT:String = 'CLICK_ITEM_EVENT';
		public static const CLICK_MINI_POPUPS:String = 'CLICK_MINI_POPUPS';
		public static const CLICK_30_INTERVIEW_WINNER:String = 'CLICK_30_INTERVIEW_WINNER';
		public static const CALENDAR_CHANGE:String = 'CALENDAR_CHANGE';
		
		public  var data:Object;
		public  var datapopup:Object;
		public  var id:int;
		
		
		public function UIEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null ) 
		{ 
			this.data = data;
			super(type, bubbles, cancelable);
		};
		
		public override function clone():Event 
		{ 
			return new UIEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("UIEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}